package com.example.a12.model;

public class Novel {
    private String title;
    private String summary;
    private int imageResourceId; // 修改为与方法名一致的属性名
    private String url;

    public Novel(String title, String summary, int imageResourceId, String url) {
        this.title = title;
        this.summary = summary;
        this.imageResourceId = imageResourceId;
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public String getSummary() {
        return summary;
    }

    // 修改方法名与属性名一致
    public int getImageResourceId() {
        return imageResourceId;
    }

    public String getUrl() {
        return url;
    }
}